/*
 * Page31.java
 *
 * Created on __DATE__, __TIME__
 */

package forms;

/**
 *
 * @author  Tom Lutze
 */
public class Page4 extends javax.swing.JPanel {

	private StartForm tabbedPaneExample;

	/** Creates new form Page31 */
	public Page4(StartForm tabbedPaneExample) {
		this.tabbedPaneExample = tabbedPaneExample;
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jScrollPane1 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();
		jLabel1 = new javax.swing.JLabel();
		jLabel2 = new javax.swing.JLabel();
		jButton1 = new javax.swing.JButton();
		jLabel3 = new javax.swing.JLabel();
		jButton2 = new javax.swing.JButton();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jLabel7 = new javax.swing.JLabel();

		jScrollPane1.setBorder(null);

		jTextArea1.setBackground(new java.awt.Color(240, 240, 240));
		jTextArea1.setColumns(20);
		jTextArea1.setEditable(false);
		jTextArea1.setLineWrap(true);
		jTextArea1.setRows(5);
		jTextArea1
				.setText("Um einen Nutzen aus dem panchromatischen Bild ziehen zu k\u00f6nnen, ist eine Umwandlung des Farbbildes vom RGB-Farbraum in den HSI-Farbraum (bzw. HSV) n\u00f6tig. Ersterer besitzt nur Informationen zum roten (R), gr\u00fcnen (G) und blauen (G) Farbanteil eines Pixels, jedoch nicht zur Helligkeit. Der HSI-Farbraum hingegen besitzt neben den Informationen des Farbwertes (H) und S\u00e4ttigung (S) auch einen Wert f\u00fcr die Helligkeit (I bzw. V). Die einzelnen Parameter ergeben sich \u00fcber den Farbraumkegel wie folgt:\n\nH- Winkel auf dem Farbkreis\nS- Radius des Farbkreises \nI- Lotl\u00e4nge von der Kegelspitze zum Mittelunkt des Farbkreises\n\nDas panchromatische Bild besitzt bereits einen hochaufl\u00f6sendenHelligkeitsteil. Damit dieser verwendet werden kann, wird das Farbbild von RGB nach HSI transformiert.\n");
		jTextArea1.setWrapStyleWord(true);
		jTextArea1.setBorder(javax.swing.BorderFactory
				.createTitledBorder("Schritt 3"));
		jScrollPane1.setViewportView(jTextArea1);

		jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/resources/320px-RGB_Cube_Show_lowgamma_cutout_a_b.png"))); // NOI18N
		jLabel1.setBorder(javax.swing.BorderFactory
				.createLineBorder(new java.awt.Color(0, 0, 0)));
		jLabel1.setOpaque(true);

		jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/resources/300px-HSV_cone.png"))); // NOI18N
		jLabel2.setBorder(javax.swing.BorderFactory
				.createLineBorder(new java.awt.Color(0, 0, 0)));
		jLabel2.setOpaque(true);

		jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/resources/Actions-go-next-icon.png"))); // NOI18N
		jButton1.setText("Weiter");
		jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton1ActionPerformed(evt);
			}
		});

		jLabel3.setFont(new java.awt.Font("Segoe UI", 0, 36));
		jLabel3.setText(">");

		jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/resources/Actions-go-previous-icon.png"))); // NOI18N
		jButton2.setText("Zur\u00fcck");
		jButton2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton2ActionPerformed(evt);
			}
		});

		jLabel4.setFont(new java.awt.Font("Segoe UI", 0, 8));
		jLabel4.setForeground(new java.awt.Color(153, 153, 153));
		jLabel4.setText("Quelle: http://commons.wikimedia.org/wiki/File:HSV_cone.png");

		jLabel5.setFont(new java.awt.Font("Segoe UI", 0, 8));
		jLabel5.setForeground(new java.awt.Color(153, 153, 153));
		jLabel5.setText("Quelle: http://commons.wikimedia.org/wiki/File:RGB_Cube_Show_lowgamma_cutout_a.png");

		jLabel6.setText("RGB-Farbraum");

		jLabel7.setText("HSI-Farbraum");

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(
														jScrollPane1,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														681, Short.MAX_VALUE)
												.addGroup(
														javax.swing.GroupLayout.Alignment.TRAILING,
														layout.createSequentialGroup()
																.addComponent(
																		jButton2)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																		489,
																		Short.MAX_VALUE)
																.addComponent(
																		jButton1))
												.addGroup(
														layout.createSequentialGroup()
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addGroup(
																						layout.createSequentialGroup()
																								.addComponent(
																										jLabel1)
																								.addPreferredGap(
																										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																								.addComponent(
																										jLabel3))
																				.addComponent(
																						jLabel5)
																				.addComponent(
																						jLabel6))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						jLabel7)
																				.addComponent(
																						jLabel4)
																				.addComponent(
																						jLabel2,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						320,
																						javax.swing.GroupLayout.PREFERRED_SIZE))))
								.addContainerGap()));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(jScrollPane1,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(jLabel6)
												.addComponent(jLabel7))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING,
												false)
												.addComponent(
														jLabel2,
														javax.swing.GroupLayout.Alignment.TRAILING,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														Short.MAX_VALUE)
												.addComponent(
														jLabel3,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														Short.MAX_VALUE)
												.addComponent(
														jLabel1,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														300,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(jLabel4)
												.addComponent(jLabel5))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED,
										35, Short.MAX_VALUE)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(jButton1)
												.addComponent(jButton2))
								.addContainerGap()));
	}// </editor-fold>
	//GEN-END:initComponents

	private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		tabbedPaneExample.setTabbedIndexBackward();
	}

	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		tabbedPaneExample.setTabbedIndexForward();
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton jButton1;
	private javax.swing.JButton jButton2;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel5;
	private javax.swing.JLabel jLabel6;
	private javax.swing.JLabel jLabel7;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JTextArea jTextArea1;
	// End of variables declaration//GEN-END:variables

}